{
  "properties" : { },
  "id" : "copy1680784991067d57771",
  "script" : null,
  "groupId" : "9219a9a8cdb9442d820f0770ccf483ab",
  "name" : "camel",
  "createTime" : 1693362474316,
  "updateTime" : 1680827651578,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/camel",
  "description" : null,
  "returnType" : null,
  "mappingPath" : null,
  "parameters" : [ {
    "name" : "str",
    "value" : null,
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "java.lang.String",
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ]
}
================================
var arr = str.split("_"); //以-来分割字符串，输出arr为["hello","the","world","!"]，将字符串foo转换成了数组，每一项是一个单词

arr[0] = arr[0].toLowerCase();
for (i in range(1,arr.getLength()-1)) {
    arr[i] = (arr[i].charAt(0).toString()).toUpperCase() + arr[i].substring(1, arr[i].length()).toLowerCase(); //每一个单词的首字母大写
    //此处需要注意的是，变成大写会返回一个新的字符串，并不会在原有的字符串做改动，因此如果此处直接输出arr[i]，首字母仍然是小写
}
return arr.join(''); //将数组用‘’连接成字符串并返回